package com.ruoyi.bigscreen.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Document(indexName = "tm_organization")
@TableName(value = "tm_organization")
@Data
public class TmOrganization {

  @TableId(value = "id",type = IdType.INPUT)
  @TableField(value = "id")
  private String id;
  @TableField(value = "org_id")
  private String orgId;
  @Field(type = FieldType.Text, analyzer = "ik_smart",store = false,index = true,searchAnalyzer = "ik_smart")
  @TableField(value = "org_name")
  private String orgName;
  @TableField(value = "org_longitude")
  private String orgLongitude;
  @TableField(value = "org_latitude")
  private String orgLatitude;
  @Field(type = FieldType.Text, analyzer = "ik_smart",store = false,index = true,searchAnalyzer = "ik_smart")
  @TableField(value = "org_descr")
  private String orgDescr;
  @TableField(value = "org_type")
  private String orgType;
  @TableField(value = "org_status")
  private String orgStatus;
  @TableField(value = "org_mierarchy")
  private String orgMierarchy;
  @TableField(value = "parent_id")
  private String parentId;
  @TableField(value = "update_time")
  private java.sql.Timestamp updateTime;
  @TableField(value = "org_camp")
  private String orgCamp;
  @TableField(value = "create_time")
  private java.sql.Timestamp createTime;
  @TableField(value = "personnel_num")
  private String personnelNum;

}
